Add top/bottom style classes to scroll arrows
authorMatthias Clasen <mclasen@redhat.com>
Fri, 10 Oct 2014 11:43:36 +0000 (07:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 10 Oct 2014 11:44:03 +0000 (07:44 -0400)
gtk/gtkmenu.c

index 2991136f182e167b5b9c1f24a58457e3727b8cf0..270fbec7c823cfe43e1a1a86d196ea33871c028c 100644 (file)
@@ -3083,6 +3083,7 @@ gtk_menu_draw (GtkWidget *widget,
         {
           gtk_style_context_save (context);
           gtk_style_context_set_state (context, priv->upper_arrow_state);
+          gtk_style_context_add_class (context, GTK_STYLE_CLASS_TOP);
 
           gtk_render_background (context, cr,
                                  upper.x, upper.y,
@@ -3103,6 +3104,7 @@ gtk_menu_draw (GtkWidget *widget,
         {
           gtk_style_context_save (context);
           gtk_style_context_set_state (context, priv->lower_arrow_state);
+          gtk_style_context_add_class (context, GTK_STYLE_CLASS_BOTTOM);
 
           gtk_render_background (context, cr,
                                  lower.x, lower.y,